package net.example.model.event;


import com.oraycn.esframework.common.TransferingProject;
import com.oraycn.esframework.core.FileEventListener;

import net.example.model.FileTransferUseType;

/**
 * Created by ZN on 2015/12/4.
 */
public class FileEvent {

    public static final int FILE_REQ = 1;
    public static final int FILE_RESP = 2;
    public static final int FILE_PROCESS = 3;
    public static final int FILE_START = 4;
    public static final int FILE_RESUMED = 5;
    public static final int FILE_COMPLETED = 6;
    public static final int CANCEL_TRANSFERING = 7;
    public static final int FILE_TRANS_DISRUPPTTED = 8;

    public int Type;
    public boolean Accpet;
    public int TransferSize;
    public String ProjectId;
    public String FilePath;
    public String FileName;
    public long FileSize;
    public String Sender;
    public String Target;
    public String Common;
    public FileEventListener.FileTransDisrupttedType DisrupttedType;
    public String Cause;
    public FileTransferUseType FileTransferUseType = net.example.model.FileTransferUseType.Normal;
    public TransferingProject TransferingProject;


    public FileEvent(int type) {
        this.Type = type;
    }



    public FileEvent(int type, boolean accpet) {
        this.Type = type;
        this.Accpet = accpet;
    }
}
